//
// Created by cmz2000 on 2021/8/4.
//

#include "main.h"

int find(int num) {
    int index = -1;
    char *domain;
    for (int i = 0; i < num; ++i) {
        domain = (char *) DNS_table[i].domain;
        if (strcmp(domain, URL) == 0) {
            index = i;
            break;
        }
    }
    return index;
}